﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedLib.MessageFramework
{
    public class MessageData<TData>
    {
        public TData Data { set; get; }
        public MessageData(TData data)
        {
            Data = data;
        }
        public MessageData()
        {
            Data = default(TData);
        }

        public override string ToString()
        {
            if (Data == null) return null;
            return Data.ToString();
        }
    }
}
